<script type="text/javascript">
	$(function() {
		$('#content').xheditor({
			tools : 'full',
			html5Upload : true,
			upMultiple : 4,
			upLinkUrl : '${pageContext.request.contextPath}/bugController/upload.action',
			upLinkExt : 'zip,rar,txt,doc,docx,xls,xlsx',
			upImgUrl : '${pageContext.request.contextPath}/bugController/upload.action',
			upImgExt : 'jpg,jpeg,gif,png'
		});
	});
</script>
 
  <form id="goods-add" method="post" enctype="multipart/form-data">
    <div class="fitem">
      <label>产品标题：</label>
      <input name="title" class="easyui-validatebox" required="true" size="79">
    </div>
    <div class="fitem">
      <label>产品图片：</label>
      <input name="picture" type="file" />
    </div>
    <div class="fitem">
      <label>供应商：</label>
      
      <script type="text/javascript"> $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); </script>
      <select data-placeholder="选择供应商..." class="chzn-select" multiple style="width:350px;" tabindex="4" name="supplier[]">
      <?php foreach ($suppier_id_name_arr as $key=>$value ):?>
          <option value="<?php echo $key;?>" ><?php echo $value; ?></option>
<?php endforeach;?>     
        </select>
     </div>
    <div class="fitem">
      <label>采购价：</label>
      <input name="purchasing_price">
    </div>
    <div class="fitem">
      <label>零售价：</label>
      <input name="retail_price" class="easyui-validatebox">
    </div>
    <div class="fitem">
      <label>库存：</label>
      <input name="stock" class="easyui-validatebox">
    </div>
    <div class="fitem">
      <label>产品描述：</label>
      <textarea id="content" name="content" rows="15" cols="80" style="width: 80%">            
	</textarea>
    </div>
  </form>